package com.literature.search.core.enums;

public enum TagEnum {
    // pdf文档
    PDF,

    //图片
    PNG;

    public static TagEnum getTagEnum(String suffixName) {
        switch (suffixName) {
            case ".pdf":
                return PDF;
            case ".png":
                return PNG;
            default:
                return null;
        }
    }
}
